import ProductIndex from '@/components/product/index.vue';
import ProductInfo from '@/components/product/info.vue';


//路由列表
const list = [
    {
        path:'index',
        name:'ProductIndex',
        component:ProductIndex,
    },
    {
        path:'info',
        name:'ProductInfo',
        component:ProductInfo,
    },
]
//父路由的结构
const layout = {
    template:`<router-view></router-view>`
}

export default [{
    path:'/product',
    name:'product',
    component:layout,
    children:list
}]